home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / unix / mesaamwn.lha / Mesa-Amiwin / Make-config < prev    next >
Text File  |  1995-11-30  |  17KB  |  619 lines

  1. # Make-config
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  1.2.5
  5. # Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Make-config,v 1.27 1995/11/30 21:56:14 brianp Exp $
  23.  
  24. # $Log: Make-config,v $
  25. # Revision 1.27  1995/11/30  21:56:14  brianp
  26. # changed -fpic to -fPIC in sunos4-gcc-sl target per Carl Ollivier-Gooch
  27. #
  28. # Revision 1.26  1995/11/30  17:27:38  brianp
  29. # added suffixes to lib names for sunos4-gcc-sl per Kajiyama Tamito
  30. #
  31. # Revision 1.25  1995/11/22  18:55:30  brianp
  32. # added sunos5-x11r6-gcc-sl target from Oleg Krivosheev
  33. #
  34. # Revision 1.24  1995/11/16  20:52:43  brianp
  35. # added a number of new Sun targets and $(MFLAGS) per Frederic Devernay
  36. #
  37. # Revision 1.23  1995/11/13  21:54:12  brianp
  38. # added unicos target
  39. #
  40. # Revision 1.22  1995/10/31  19:34:19  brianp
  41. # added aix-sl and hpux-gcc targets
  42. # added Fortran binding support
  43. #
  44. # Revision 1.21  1995/10/02  14:41:09  brianp
  45. # removed -float from IRIX CFLAGS
  46. # removed .1 suffix from linux-elf library names per Danek Duvall
  47. #
  48. # Revision 1.20  1995/09/29  19:48:16  brianp
  49. # changed freebsd config to make shared libs per Mark Diekhans
  50. #
  51. # Revision 1.19  1995/09/25  14:00:19  brianp
  52. # added comment about optional INCDIR, LIBDIR assignments
  53. #
  54. # Revision 1.18  1995/09/22  19:57:24  brianp
  55. # added solaris-gcc config from Steve Stevenson
  56. #
  57. # Revision 1.17  1995/09/15  18:31:25  brianp
  58. # for netbsd:  use -m486 and X11R6
  59. #
  60. # Revision 1.16  1995/09/15  13:06:28  brianp
  61. # added dgux, hpux-sl, and ultrix-gcc configs
  62. # modified netbsd to use shared libs per Michael Graff
  63. # updated version to 1.2.3
  64. #
  65. # Revision 1.15  1995/08/01  21:04:20  brianp
  66. # removed -I$(INCDIR) from all CFLAGS
  67. # added MAKELIB
  68. # added MachTen config
  69. #
  70. # Revision 1.14  1995/06/21  16:03:32  brianp
  71. # added irix5-dso, linux-elf, and unixware targets
  72. # added TK_LIB and AUX_LIB variables
  73. # Release 1.2.1
  74. #
  75. # Revision 1.13  1995/05/25  18:52:01  brianp
  76. # changed hpux XLIBS order of -lXext -lX11 per Jan Springer
  77. #
  78. # Revision 1.12  1995/05/23  13:51:11  brianp
  79. # Release 1.2
  80. #
  81. # Revision 1.11  1995/05/16  14:12:02  brianp
  82. # added amix target
  83. # changed a few compiler flags
  84. #
  85. # Revision 1.10  1995/04/20  17:36:09  brianp
  86. # made SCO a separate target
  87. #
  88. # Revision 1.9  1995/04/18  15:49:32  brianp
  89. # fixed XLIBS variable for sun4-gcc configuration
  90. #
  91. # Revision 1.8  1995/04/17  14:47:04  brianp
  92. # introduced GL_LIB and GLU_LIB variables
  93. #
  94. # Revision 1.7  1995/03/31  17:07:24  brianp
  95. # 1.1.3 beta release
  96. #
  97. # Revision 1.6  1995/03/14  14:34:09  brianp
  98. # 1.1.2 beta release
  99. #
  100. # Revision 1.5  1995/03/09  14:55:31  brianp
  101. # added -mieee-fp to Linux CFLAGS per Thorsten Ohl
  102. #
  103. # Revision 1.4  1995/03/09  14:52:20  brianp
  104. # added osf1 target per Joseph Canedo
  105. #
  106. # Revision 1.3  1995/03/08  18:53:19  brianp
  107. # added linux-debug target per Thorsten Ohl
  108. #
  109. # Revision 1.2  1995/03/07  14:34:26  brianp
  110. # new hpux CFLAGS per Jan Springer's suggestion
  111. #
  112. # Revision 1.1  1995/03/03  16:27:51  brianp
  113. # Initial revision
  114. #
  115.  
  116.  
  117.  
  118. # The following variables are passed to each Makefile:
  119. #
  120. # GL_LIB      the name of the Mesa "GL" library file (usually libMesaGL.a)
  121. # GLU_LIB     the name of the Mesa "GLU" library file (usually libMesaGLU.a)
  122. # TK_LIB      the name of the TK toolkit library file (usually libMesatk.a)
  123. # AUX_LIB     the name of the AUX toolkit library file (usually libMesaaux.a)
  124. # CC          the C compiler (usually cc or gcc)
  125. # CFLAGS      flags to C compiler (usually -O)
  126. # MAKELIB     the command and flags to make a library file (usually "ar rcv"
  127. #                   or a shell script for shared libs)
  128. # RANLIB      "ranlib" = use ranlib, "true" = don't use ranlib
  129. # XLIBS       libraries needed to link X apps (at least -lX11)
  130. #
  131. # Optionally, you can add definitions for the INCDIR and LIBDIR variables
  132. # which specify where to find the Mesa include files and where to put the
  133. # Mesa libraries.  The defaults are ../include and ../lib.  This use of
  134. # overriding makefile macros on the command line should work with most
  135. # variants of make.
  136. #
  137. # To enable Fortan bindings you must add -DFBIND=n to your CFLAGS where
  138. # n = 1, 2, or 3 depending on your system's C/Fortran calling conventions.
  139. # See the src/fortran.c file for more info.
  140. #
  141. # To add a new configuration for your system just follow the examples below
  142. # and update the top-level Makefile.
  143. #
  144. # If your system supports the X Shared Memory extension add -DSHM to the
  145. # CFLAGS line and add -lXext to the XLIBS line.
  146.  
  147.  
  148.  
  149.  
  150. aix:
  151.     $(MAKE) $(MFLAGS) targets \
  152.     "GL_LIB = libMesaGL.a" \
  153.     "GLU_LIB = libMesaGLU.a" \
  154.     "TK_LIB = libMesatk.a" \
  155.     "AUX_LIB = libMesaaux.a" \
  156.     "CC = cc" \
  157.     "CFLAGS = -O -DFBIND=1" \
  158.     "MAKELIB = ar ruv" \
  159.     "RANLIB = true" \
  160.     "XLIBS = -lX11"
  161.  
  162. aix-sl:
  163.     $(MAKE) $(MFLAGS) targets \
  164.     "GL_LIB = libMesaGL.a" \
  165.     "GLU_LIB = libMesaGLU.a" \
  166.     "TK_LIB = libMesatk.a" \
  167.     "AUX_LIB = libMesaaux.a" \
  168.     "CC = cc" \
  169.     "CFLAGS = -O -DFBIND=1" \
  170.     "MAKELIB = ../mklib.aix" \
  171.     "RANLIB = true" \
  172.     "XLIBS = -lX11"
  173.  
  174. # Make-config additions for the Amiga 3000 UX
  175. # Carlyn Voss Iuzzolino   5/8/95: 
  176. # Modified gcc part as follows:
  177. # Needed to take out -pedantic because that makes gcc complain about 
  178. # ANSI-CC not allowing #ident in Amiga's /usr/include/*.h files.
  179. # Took out -O2 (unrecognized option for gcc on the Amiga).
  180. # Needs /usr/lib/libsocket.a file. 
  181. amix:
  182.     $(MAKE) $(MFLAGS) targets \
  183.     "GL_LIB = libMesaGL.a" \
  184.     "GLU_LIB = libMesaGLU.a" \
  185.     "TK_LIB = libMesatk.a" \
  186.     "AUX_LIB = libMesaaux.a" \
  187.     "CC = cc" \
  188.     "CFLAGS =" \
  189.     "MAKELIB = ar ruv" \
  190.     "RANLIB = true" \
  191.     "XLIBS = -lX11 -lsocket -lnsl "
  192.  
  193. dgux:
  194.     $(MAKE) $(MFLAGS) targets \
  195.     "GL_LIB = libMesaGL.a" \
  196.     "GLU_LIB = libMesaGLU.a" \
  197.     "TK_LIB = libMesatk.a" \
  198.     "AUX_LIB = libMesaaux.a" \
  199.     "CC = gcc" \
  200.     "CFLAGS = -O" \
  201.     "MAKELIB = ar ruv" \
  202.     "RANLIB = true" \
  203.     "XLIBS = -lX11"
  204.  
  205. freebsd:
  206.     $(MAKE) $(MFLAGS) targets \
  207.     "GL_LIB = libMesaGL.a" \
  208.     "GLU_LIB = libMesaGLU.a" \
  209.     "TK_LIB = libMesatk.a" \
  210.     "AUX_LIB = libMesaaux.a" \
  211.     "CC = gcc" \
  212.     "CFLAGS = -pipe -O2 -fPIC -pedantic -DSHM" \
  213.     "MAKELIB = ../mklib.freebsd" \
  214.     "RANLIB = true" \
  215.     "XLIBS = -lXext -lX11"
  216.  
  217. gcc:
  218.     $(MAKE) $(MFLAGS) targets \
  219.     "GL_LIB = libMesaGL.a" \
  220.     "GLU_LIB = libMesaGLU.a" \
  221.     "TK_LIB = libMesatk.a" \
  222.     "AUX_LIB = libMesaaux.a" \
  223.     "CC = gcc" \
  224.     "CFLAGS = -pedantic -O2" \
  225.     "MAKELIB = ar ruv" \
  226.     "RANLIB = ranlib" \
  227.     "XLIBS = -lX11"
  228.  
  229. hpux:
  230.     $(MAKE) $(MFLAGS) targets \
  231.     "GL_LIB = libMesaGL.a" \
  232.     "GLU_LIB = libMesaGLU.a" \
  233.     "TK_LIB = libMesatk.a" \
  234.     "AUX_LIB = libMesaaux.a" \
  235.     "CC = cc" \
  236.     "CFLAGS = +O2 +Onofltacc -Aa -D_HPUX_SOURCE -I/usr/include/X11R5 -DSHM -DFBIND=1" \
  237.     "MAKELIB = ar ruv" \
  238.     "RANLIB = true" \
  239.     "XLIBS = -L/usr/lib/X11R5 -lXext -lX11"
  240.  
  241. hpux-gcc:
  242.     $(MAKE) $(MFLAGS) targets \
  243.     "GL_LIB = libMesaGL.a" \
  244.     "GLU_LIB = libMesaGLU.a" \
  245.     "TK_LIB = libMesatk.a" \
  246.     "AUX_LIB = libMesaaux.a" \
  247.     "CC = gcc" \
  248.     "CFLAGS = -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R5 -DSHM -DFBIND=1" \
  249.     "MAKELIB = ar ruv" \
  250.     "RANLIB = true" \
  251.     "XLIBS = -L/usr/lib/X11R5 -lXext -lX11"
  252.  
  253. hpux-sl:
  254.     $(MAKE) $(MFLAGS) targets \
  255.     "GL_LIB = libMesaGL.sl" \
  256.     "GLU_LIB = libMesaGLU.sl" \
  257.     "TK_LIB = libMesatk.sl" \
  258.     "AUX_LIB = libMesaaux.sl" \
  259.     "CC = cc" \
  260.     "CFLAGS = +z +O2 +Onofltacc +ESlit -Aa -D_HPUX_SOURCE -I/usr/include/X11R5 -DSHM -DFBIND=1" \
  261.     "MAKELIB = ../mklib.hpux" \
  262.     "RANLIB = true" \
  263.     "XLIBS = -L/usr/lib/X11R5 -s -Wl,+s,-B,nonfatal,-B,immediate -lXext -lX11"
  264.  
  265. # For IRIX 4: don't use -fullwarn because it causes too much garbage
  266. irix4:
  267.     pmake $(MFLAGS) targets \
  268.     "GL_LIB = libMesaGL.a" \
  269.     "GLU_LIB = libMesaGLU.a" \
  270.     "TK_LIB = libMesatk.a" \
  271.     "AUX_LIB = libMesaaux.a" \
  272.     "CC = cc" \
  273.     "CFLAGS = -O2 -ansi -prototypes -DSHM -DFBIND=2" \
  274.     "MAKELIB = ar rcv" \
  275.     "RANLIB = true" \
  276.     "XLIBS = -lXext -lX11"
  277.  
  278. # On IRIX 5.3 -sopt causes a problem in drawpixels.c so we don't use it
  279. irix5:
  280.     pmake $(MFLAGS) targets \
  281.     "GL_LIB = libMesaGL.a" \
  282.     "GLU_LIB = libMesaGLU.a" \
  283.     "TK_LIB = libMesatk.a" \
  284.     "AUX_LIB = libMesaaux.a" \
  285.     "CC = cc" \
  286.     "CFLAGS = -O2 -ansi -fullwarn -DSHM -DFBIND=2" \
  287.     "MAKELIB = ar rcv" \
  288.     "RANLIB = true" \
  289.     "XLIBS = -lX11 -lXext"
  290.  
  291. # IRIX 5 using Dynamic Shared Objects (DSO)
  292. irix5-dso:
  293.     pmake $(MFLAGS) targets \
  294.     "GL_LIB = libMesaGL.so" \
  295.     "GLU_LIB = libMesaGLU.so" \
  296.     "TK_LIB = libMesatk.so" \
  297.     "AUX_LIB = libMesaaux.so" \
  298.     "CC = cc" \
  299.     "CFLAGS = -O2 -ansi -fullwarn -DSHM -DFBIND=2" \
  300.     "MAKELIB = ld -shared -all -o" \
  301.     "RANLIB = true" \
  302.     "XLIBS = -lX11 -lXext"
  303.  
  304. # For IRIX 6: -woff:
  305. #   1068 - integer conversion resulted in a change of sign
  306. #   1069 - integer conversion resulted in truncation
  307. #   1174 - variable was declared but never referenced
  308. #   1185 - enumerated type mixed with another type
  309. #   1209 - controlling expression is constant
  310. #   1474 - declaring a void parameter list with a typedef is nonstandard
  311. #   1552 - variable was set but never used
  312. irix6:
  313.     pmake $(MFLAGS) targets \
  314.     "GL_LIB = libMesaGL.a" \
  315.     "GLU_LIB = libMesaGLU.a" \
  316.     "TK_LIB = libMesatk.a" \
  317.     "AUX_LIB = libMesaaux.a" \
  318.     "CC = cc" \
  319.     "CFLAGS = -64 -O3 -ansi -fullwarn -woff 1068,1069,1174,1185,1209,1474,1552 -DSHM" \
  320.     "MAKELIB = ar rcv" \
  321.     "RANLIB = true" \
  322.     "XLIBS = -lX11 -lXext"
  323.  
  324. linux:
  325.     $(MAKE) $(MFLAGS) targets \
  326.     "GL_LIB = libMesaGL.a" \
  327.     "GLU_LIB = libMesaGLU.a" \
  328.     "TK_LIB = libMesatk.a" \
  329.     "AUX_LIB = libMesaaux.a" \
  330.     "CC = gcc" \
  331.     "CFLAGS = -pedantic -funroll-loops -O2 -mieee-fp -DSHM" \
  332.     "MAKELIB = ar ruv" \
  333.     "RANLIB = ranlib" \
  334.     "XLIBS = -L/usr/X11/lib -lX11 -lXext"
  335.  
  336. linux-elf:
  337.     $(MAKE) $(MFLAGS) targets \
  338.     "GL_LIB = libMesaGL.so" \
  339.     "GLU_LIB = libMesaGLU.so" \
  340.     "TK_LIB = libMesatk.so" \
  341.     "AUX_LIB = libMesaaux.so" \
  342.     "CC = gcc" \
  343.     "CFLAGS = -pedantic -fPIC -funroll-loops -O2 -mieee-fp -DSHM" \
  344.     "MAKELIB = ../mklib.linux" \
  345.     "RANLIB = true" \
  346.     "XLIBS = -L/usr/X11/lib -lX11 -lXext"
  347.  
  348. machten:
  349.     $(MAKE) $(MFLAGS) targets \
  350.     "GL_LIB = libMesaGL.a" \
  351.     "GLU_LIB = libMesaGLU.a" \
  352.     "TK_LIB = libMesatk.a" \
  353.     "AUX_LIB = libMesaaux.a" \
  354.     "CC = gcc" \
  355.     "CFLAGS = -DTENON -D__MACHTEN__ -fstrength-reduce -m68881 -O2" \
  356.     "MAKELIB = ar rcv" \
  357.     "RANLIB = ranlib" \
  358.     "XLIBS = -L/usr/lib/X11 -lX11"
  359.  
  360. netbsd:
  361.     $(MAKE) $(MFLAGS) targets \
  362.     "GL_LIB = libMesaGL.so" \
  363.     "GLU_LIB = libMesaGLU.so" \
  364.     "TK_LIB = libMesatk.so" \
  365.     "AUX_LIB = libMesaaux.so" \
  366.     "CC = gcc" \
  367.     "CFLAGS = -pipe -O2 -m486 -fPIC -I/usr/X11R6/include -DHZ=100"  \
  368.     "MAKELIB = ../mklib.netbsd" \
  369.     "RANLIB = true" \
  370.     "XLIBS = -L/usr/X11R6/lib -lX11"
  371.  
  372. osf1:
  373.     $(MAKE) $(MFLAGS) targets \
  374.     "GL_LIB = libMesaGL.a" \
  375.     "GLU_LIB = libMesaGLU.a" \
  376.     "TK_LIB = libMesatk.a" \
  377.     "AUX_LIB = libMesaaux.a" \
  378.     "CC = cc" \
  379.     "CFLAGS = -O2 -std1 -DSHM -DFBIND=2" \
  380.     "MAKELIB = ar ruv" \
  381.     "RANLIB = true" \
  382.     "XLIBS = -lX11 -lXext"
  383.  
  384. sco:
  385.     $(MAKE) $(MFLAGS) targets \
  386.     "GL_LIB = libMesaGL.a" \
  387.     "GLU_LIB = libMesaGLU.a" \
  388.     "TK_LIB = libMesatk.a" \
  389.     "AUX_LIB = libMesaaux.a" \
  390.     "CC = gcc" \
  391.     "CFLAGS = -pedantic -O2 -mieee-fp" \
  392.     "MAKELIB = ar ruv" \
  393.     "RANLIB = true" \
  394.     "XLIBS = -L/usr/X11/lib -lX11"
  395.  
  396. solaris-gcc:
  397.     $(MAKE) $(MFLAGS) targets \
  398.     "GL_LIB = libMesaGL.a" \
  399.     "GLU_LIB = libMesaGLU.a" \
  400.     "TK_LIB = libMesatk.a" \
  401.     "AUX_LIB = libMesaaux.a" \
  402.     "CC = gcc" \
  403.     "CFLAGS = -pedantic -O2" \
  404.     "MAKELIB = ar ruv" \
  405.     "RANLIB = true" \
  406.     "XLIBS = -lX11 -L/usr/ucblib -lsocket -lnsl -lucb"
  407.  
  408. sunos4:
  409.     $(MAKE) $(MFLAGS) targets \
  410.     "GL_LIB = libMesaGL.a" \
  411.     "GLU_LIB = libMesaGLU.a" \
  412.     "TK_LIB = libMesatk.a" \
  413.     "AUX_LIB = libMesaaux.a" \
  414.     "CC = acc" \
  415.     "CFLAGS = -O -DSHM -DSUNOS4 -DFBIND=2" \
  416.     "MAKELIB = ar ruv" \
  417.     "RANLIB = ranlib" \
  418.     "XLIBS = -lX11 -lXext"
  419.  
  420. sunos4-sl:
  421.     $(MAKE) $(MFLAGS) targets \
  422.     "GL_LIB = libMesaGL.so" \
  423.     "GLU_LIB = libMesaGLU.so" \
  424.     "TK_LIB = libMesatk.so" \
  425.     "AUX_LIB = libMesaaux.so" \
  426.     "CC = acc" \
  427.     "CFLAGS = -Kpic -O -I/usr/include/X11R5 -DSHM -DSUNOS4 -DFBIND=2" \
  428.     "MAKELIB = ld -assert pure-text -o" \
  429.     "RANLIB = true" \
  430.     "XLIBS = -L/usr/lib/X11R5 -lX11 -lXext"
  431.  
  432. sunos4-gcc:
  433.     $(MAKE) $(MFLAGS) targets \
  434.     "GL_LIB = libMesaGL.a" \
  435.     "GLU_LIB = libMesaGLU.a" \
  436.     "TK_LIB = libMesatk.a" \
  437.     "AUX_LIB = libMesaaux.a" \
  438.     "CC = gcc" \
  439.     "CFLAGS = -O3 -DSHM -DSUNOS4" \
  440.     "MAKELIB = ar ruv" \
  441.     "RANLIB = ranlib" \
  442.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext"
  443.  
  444. sunos4-gcc-sl:
  445.     $(MAKE) $(MFLAGS) targets \
  446.     "GL_LIB = libMesaGL.so.1.2.5" \
  447.     "GLU_LIB = libMesaGLU.so.1.2.5" \
  448.     "TK_LIB = libMesatk.so.1.2.5" \
  449.     "AUX_LIB = libMesaaux.so.1.2.5" \
  450.     "CC = gcc" \
  451.     "CFLAGS = -fPIC -O3 -I/usr/include/X11R5 -DSHM -DSUNOS4" \
  452.     "MAKELIB = ld -assert pure-text -o" \
  453.     "RANLIB = true" \
  454.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext"
  455.  
  456. sunos5:
  457.     $(MAKE) $(MFLAGS) targets \
  458.     "GL_LIB = libMesaGL.a" \
  459.     "GLU_LIB = libMesaGLU.a" \
  460.     "TK_LIB = libMesatk.a" \
  461.     "AUX_LIB = libMesaaux.a" \
  462.     "CC = cc" \
  463.     "CFLAGS = -Xa -O -I/usr/openwin/include -DSHM -DFBIND=2" \
  464.     "MAKELIB = ar ruv" \
  465.     "RANLIB = true" \
  466.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext"
  467.  
  468. sunos5-sl:
  469.     $(MAKE) $(MFLAGS) targets \
  470.     "GL_LIB = libMesaGL.so" \
  471.     "GLU_LIB = libMesaGLU.so" \
  472.     "TK_LIB = libMesatk.so" \
  473.     "AUX_LIB = libMesaaux.so" \
  474.     "CC = cc" \
  475.     "CFLAGS = -Kpic -Xa -O -I/usr/openwin/include -DSHM -DFBIND=2" \
  476.     "MAKELIB = ld -G -o" \
  477.     "RANLIB = true" \
  478.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext"
  479.  
  480. sunos5-gcc:
  481.     $(MAKE) $(MFLAGS) targets \
  482.     "GL_LIB = libMesaGL.a" \
  483.     "GLU_LIB = libMesaGLU.a" \
  484.     "TK_LIB = libMesatk.a" \
  485.     "AUX_LIB = libMesaaux.a" \
  486.     "CC = gcc" \
  487.     "CFLAGS = -O3 -I/usr/openwin/include -DSHM" \
  488.     "MAKELIB = ar ruv" \
  489.     "RANLIB = true" \
  490.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext"
  491.  
  492. sunos5-gcc-sl:
  493.     $(MAKE) $(MFLAGS) targets \
  494.     "GL_LIB = libMesaGL.so" \
  495.     "GLU_LIB = libMesaGLU.so" \
  496.     "TK_LIB = libMesatk.so" \
  497.     "AUX_LIB = libMesaaux.so" \
  498.     "CC = gcc" \
  499.     "CFLAGS = -fpic -O3 -I/usr/openwin/include -DSHM" \
  500.     "MAKELIB = ld -G -o" \
  501.     "RANLIB = true" \
  502.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext"
  503.  
  504. sunos5-x11r6-gcc-sl:
  505.     $(MAKE) $(MFLAGS) targets \
  506.     "GL_LIB = libMesaGL.so" \
  507.     "GLU_LIB = libMesaGLU.so" \
  508.     "TK_LIB = libMesatk.so" \
  509.     "AUX_LIB = libMesaaux.so" \
  510.     "CC = gcc" \
  511.     "CFLAGS = -pipe -fpic -O3 -DSHM" \
  512.     "MAKELIB = ld -G -o" \
  513.     "RANLIB = true" \
  514.     "XLIBS = -L/usr/ucblib -lX11 -lXext -lnsl -lsocket -lucb"
  515.  
  516.  
  517. #This config doesn't work, Ultrix C compiler isn't ANSI compliant
  518. ultrix:
  519.     $(MAKE) $(MFLAGS) targets \
  520.     "GL_LIB = libMesaGL.a" \
  521.     "GLU_LIB = libMesaGLU.a" \
  522.     "TK_LIB = libMesatk.a" \
  523.     "AUX_LIB = libMesaaux.a" \
  524.     "CC = cc" \
  525.     "CFLAGS = -O -Dconst=/**/" \
  526.     "MAKELIB = ar rusv" \
  527.     "RANLIB = true" \
  528.     "XLIBS = -lX11"
  529.  
  530. ultrix-gcc:
  531.     $(MAKE) $(MFLAGS) targets \
  532.     "GL_LIB = libMesaGL.a" \
  533.     "GLU_LIB = libMesaGLU.a" \
  534.     "TK_LIB = libMesatk.a" \
  535.     "AUX_LIB = libMesaaux.a" \
  536.     "CC = gcc" \
  537.     "CFLAGS = -pedantic -O2" \
  538.     "MAKELIB = ar ruv" \
  539.     "RANLIB = ranlib" \
  540.     "XLIBS = -lX11"
  541.  
  542. # tested on Cray C90 running UNICOS 8.0.4
  543. unicos:
  544.     $(MAKE) $(MFLAGS) targets \
  545.     "GL_LIB = libMesaGL.a" \
  546.     "GLU_LIB = libMesaGLU.a" \
  547.     "TK_LIB = libMesatk.a" \
  548.     "AUX_LIB = libMesaaux.a" \
  549.     "CC = cc" \
  550.     "CFLAGS =" \
  551.     "MAKELIB = ar rcv" \
  552.     "RANLIB = true" \
  553.     "XLIBS = -lX11 -lXext"
  554.  
  555.  
  556. unixware:
  557.     $(MAKE) $(MFLAGS) targets \
  558.     "GL_LIB = libMesaGL.a" \
  559.     "GLU_LIB = libMesaGLU.a" \
  560.     "TK_LIB = libMesatk.a" \
  561.     "AUX_LIB = libMesaaux.a" \
  562.     "CC = cc" \
  563.     "CFLAGS = -O -I/usr/X/include -DSHM" \
  564.     "MAKELIB = ar ruv" \
  565.     "RANLIB = true" \
  566.     "XLIBS = -lX11 -lXext -lsocket -lnsl"
  567.  
  568. vistra:
  569.     $(MAKE) $(MFLAGS) targets \
  570.     "GL_LIB = libMesaGL.a" \
  571.     "GLU_LIB = libMesaGLU.a" \
  572.     "TK_LIB = libMesatk.a" \
  573.     "AUX_LIB = libMesaaux.a" \
  574.     "CC = gcc" \
  575.     "CFLAGS = -pedantic -O2" \
  576.     "MAKELIB = ar ruv" \
  577.     "RANLIB = true" \
  578.     "XLIBS = -lX11 -lsocket -lnsl -lgen"
  579.  
  580.  
  581. # for debugging on IRIX 5.x systems
  582. debug:
  583.     pmake $(MFLAGS) targets \
  584.     "GL_LIB = libMesaGL.a" \
  585.     "GLU_LIB = libMesaGLU.a" \
  586.     "TK_LIB = libMesatk.a" \
  587.     "AUX_LIB = libMesaaux.a" \
  588.     "CC = cc" \
  589.     "CFLAGS = -g -ansi -prototypes -fullwarn -DSHM -DFBIND=2" \
  590.     "MAKELIB = ar rcv" \
  591.     "RANLIB = true" \
  592.     "XLIBS = -lX11 -lXext -lfpe -lXext"
  593.  
  594. DEBUG:
  595.     pmake $(MFLAGS) targets \
  596.     "GL_LIB = libMesaGL.a" \
  597.     "GLU_LIB = libMesaGLU.a" \
  598.     "TK_LIB = libMesatk.a" \
  599.     "AUX_LIB = libMesaaux.a" \
  600.     "CC = cc" \
  601.     "CFLAGS = -g -ansi -prototypes -fullwarn -DSHM -DFBIND=2 -DDEBUG" \
  602.     "MAKELIB = ar rcv" \
  603.     "RANLIB = true" \
  604.     "XLIBS = -lX11 -lXext -lfpe"
  605.  
  606. # for debugging on Linux systems
  607. linux-debug:
  608.     $(MAKE) $(MFLAGS) targets \
  609.     "GL_LIB = libMesaGL.a" \
  610.     "GLU_LIB = libMesaGLU.a" \
  611.     "TK_LIB = libMesatk.a" \
  612.     "AUX_LIB = libMesaaux.a" \
  613.     "CC = gcc" \
  614.     "CFLAGS = -pedantic -g" \
  615.     "MAKELIB = ar ruv" \
  616.     "RANLIB = ranlib" \
  617.     "XLIBS = -L/usr/X11/lib -lX11"
  618.  
  619.